Repository navigation
fix: exclude external emojis from metrics - #1608
Open
Aaqibhafeezkhan wants to merge 1 commit into
Open
Aaqibhafeezkhan wants to merge 1 commit into
Aaqibhafeezkhan wants to merge 1 commit into
Conversation
Count custom emojis only when they belong to the guild where the message or reaction was sent. Signed-off-by: Aaqibhafeez Khan <githubaaqibhafeezkhan@gmail.com>
Aaqibhafeezkhan
commented
Nov 26, 2026
Aaqibhafeezkhan
left a comment
Author
There was a problem hiding this comment.
Checked the implementation against #1453.
- Message tracking now excludes custom emojis that do not belong to the current guild.
- Reaction tracking applies the same filtering.
- Unicode reactions, webhook messages and non-guild events are handled without recording metrics.
- Added regression tests covering local and external emojis across both message and reaction events.
The change is limited to the emoji tracking listener and its unit tests. Historical metric records remain untouched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1453.
Testing